package com.cqjtu.eecs.mapper;

import com.cqjtu.eecs.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色 Mapper 接口
 * </p>
 *
 * @author     luojun
 * @since 2022-03-04
 */
@Mapper
@Repository
public interface RoleMapper extends BaseMapper<Role> {
    // 通过角色名字List获取对应的角色List
    List<Role> listRoleByNameList(@Param("names")List<String> names);
    // 通过角色idList获取对应的角色list
    List<Role> listRoleByIdList(@Param("ids")List<Integer> ids);
    List<String> listUserRole(@Param("id")Integer id);
}
